<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<table class="display" id="example">
	<thead>
		<tr>
			<th>文件名称</th>
			<th>上传时间</th>
			<th>上传者</th>
			<th>培训课程</th>
			<th>讲师</th>
			<th>下载</th>
		</tr>
	</thead>
	<tbody>
		<s:if test="#request.resources==null || #request.resources.size<=0">
			<tr class="gradeA">
				<td colspan="6">暂无数据</td>
			</tr>
		</s:if>
		<s:else>
			<s:iterator var="res" status="sta" value="#request.resources">
				<s:if test="#sta.even">
					<tr class="gradeA">
				</s:if>
				<s:else>
					<tr class="gradeC">
				</s:else>
				<td><a href="${res.coursewareUrl}">${res.coursewareName}</a></td>
				<td><fmt:formatDate value="${res.uploadDate}"
						pattern="yyyy-MM-dd HH:mm" /></td>
				<td><span id="GridView1_ctl04_Label1">${res.uploader}</span></td>
				<td>${plan.title}</td>
				<td><s:if test="#plan.lecturerType==0">${plan.trainLecturer.employeeinfoWork.baseId.name}</s:if>
					<s:else>${plan.outingLecturer}</s:else></td>
				<td><a class="button" href="${res.coursewareUrl}"><span
						style="background: url(${ctx}/images/img/page_save.png)"
						class="icon icon-ok">&nbsp;</span>下载</a></td>
				</tr>
			</s:iterator>
		</s:else>
	</tbody>
</table>
<p>
	<%@ include file="/WEB-INF/pages/common/main_orgtab_pager_train_mater.jsp"%>
</p>